<?php
 
namespace models\entities;
 
/**
 * @Entity(repositoryClass="models\repositories\PermissionRepository")
 * @Table(name="permission")
 */
class Permission {
 
/**
 * @Id
 * @Column(name="code",type="string", length=4, unique=true, nullable=false)
 */
	protected $code;
 
/**
 * @Column(name="nama", type="string", length=45)
 */
	protected $nama;

	public function setCode($code)
	{
	    $this->code = $code;
	}
 
	public function getCode()
	{
	    return $this->code;
	}

	public function setNama($nama)
	{
	    $this->nama = $nama;
	}
 
	public function getNama()
	{
	    return $this->nama;
	}	
}